<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title> 旋转 rotate </title>
  <style>
    /* img {
      width: 150px;
      transition: all 0.5s;
    }
    img:hover {
      transform: rotate(350deg);
    } */

    img {
      width: 150px;
      margin: 200px;
      transition: all 0.5s;
      /* 1. 左下角 旋转，可以使用的是方位名词 */
      /* transform-origin: left bottom; */
      /* 可以是 px 像素 */
      transform-origin: 50px 0;
    }
    img:hover {
      transform: rotate(360deg);
    }
  </style>
</head>
<body>
    <img src="../../img//1.jpg" alt="">
</body>
</html>
